package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;


/**
 * <p>
 * 
 * </p>
 *
 * @author huang lu
 * @since 2019-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SmkDevice extends Model<SmkDevice> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "dev_id", type = IdType.AUTO)
    private Long devId;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 设备key，三江回传或电信平台回传
     */
    private String devKey;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 设备型号
     */
    private String devModel;

    /**
     * 设备名称
     */
    private String devName;

    /**
     * 设备状态1=在线，2=离线
     */
    private Integer devStatus;

    /**
     * 设备厂商
     */
    private String devManufactory;
    /**
     * 设备昵称
     */
    private String friendName;

    /**
     * iccid
     */
    private String iccid;

    /**
     * sim运营商
     */
    private String operator;

    /**
     * imei
     */
    private String imei;

    /**
     * 安装地址
     */
    private String installAddr;

    /**
     * 安装地址
     */
    private String installPic;

    /**
     * 安装时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime installDate;

    /**
     * 部门级联id
     */
    private String deptCasc;

    //信噪比(dB)
    private String signalSnr;

    //信号覆盖等级(dB)
    private String signalEcl;

    //信号强度(dBm)
    private String signalStrength;

    //电池电量
    private String batteryPower;

    //RSSI场强值
    private String rssi;

    //污染百分比
    private String dirtyPercent;

    //烟雾浓度
    private String smokeScope;



    /**
     * 备注
     */
    private String remark;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;

    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateDate;

    @TableField(exist=false)
    private String depName;
    
    @TableField(exist=false)
    private String cascader;

    @TableField(exist=false)
    private String shopName;
    
    @TableField(exist=false)
    private String shopAddr;

    @TableField(exist=false)
    private String managerName;

    @TableField(exist=false)
    private String managerMobile;

    @TableField(exist=false)
    private String statusTime;

    @TableField(exist=false)
    private String parentDept;
    
    

}
